package cn.wolfcode.luowowo.ticket.service.impl;

import cn.wolfcode.luowowo.article.domain.Ticket;
import cn.wolfcode.luowowo.ticket.mapper.TicketMapper;
import cn.wolfcode.luowowo.ticket.service.ITicketService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TicketServiceImpl implements ITicketService {

    @Autowired
    private TicketMapper ticketMapper;

    @Override
    public List<Ticket> getByTouristId(Long id) {
        return ticketMapper.selectByTouristId(id);
    }

    @Override
    public Ticket getById(Long tid) {
        return ticketMapper.selectByPrimaryKey (tid);
    }
}
